package com.dzl.micro.dao;

import com.dzl.base.mapper.BaseMapper;
import com.dzl.micro.pojo.WelfareMicroPage;
import com.dzl.micro.pojo.vo.WelfareMicroManageGoodsVo;
import com.dzl.micro.pojo.vo.WelfareMicroPageWithSwitchVo;
import com.dzl.micro.query.WelfareMicroPageQuery;
import com.dzl.partition.pojo.WelfarePartition;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 微页面表(WelfareMicroPage)表数据库访问层
 * @author ChenLong
 * @date 2021-07-30 11:10:53
 */
@Repository
public interface WelfareMicroPageMapper extends BaseMapper<WelfareMicroPage> {

    /**
     * 获取微页面装修列表
     * @author ChenLong
     * @date 2021-07-30 14:53:09
     * @param pageId 微页面Id
     * @return com.dzl.decorate.pojo.vo.WelfareDecorateVo
     **/
    List<WelfareMicroManageGoodsVo> getWelfareMicroPageList(@Param("pageId") Integer pageId);

    /**
     * 获取微页面基本信息和开关信息
     * @author ChenLong
     * @date 2021-07-30 14:53:09
     * @param pageId 微页面Id
     * @return com.dzl.decorate.pojo.vo.WelfareDecorateVo
     **/
    WelfareMicroPageWithSwitchVo getMicroPageInfoWithSwitch(@Param("pageId") Integer pageId);

    /**
     * 获取微页面分区信息
     * @author ChenLong
     * @date 2021-07-30 14:53:09
     * @param pageId 微页面Id
     * @return com.dzl.decorate.pojo.vo.WelfareDecorateVo
     **/
    List<WelfarePartition> getMicroPagePartitionList(@Param("pageId") Integer pageId);

    /**
     * 微页面管理列表
     * @date 2021/8/10 0010 14:31
     * @author wangjian
     * @param welfareMicroPageQuery 查询实体
     * @return java.util.List<com.dzl.micro.pojo.WelfareMicroPage>
     */
    List<WelfareMicroPage> getPageListData(WelfareMicroPageQuery welfareMicroPageQuery);


}
